package com.ayf.payment.game.api.entity;

import com.ayf.payment.game.api.entity.base.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "g_template_channel")
public class TemplateChannel extends BaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 模板id
     */
    @Column(name = "template_id")
    private String templateId;

    /**
     * 支付渠道类型：
     */
    @Column(name = "channel_type")
    private Integer channelType;

    /**
     * 支付渠道编码
     */
    @Column(name = "channel_code")
    private String code;

    /**
     * 支付渠道名称
     */
    @Column(name = "channel_name")
    private String channelName;

    /**
     * 赠送比例数值
     */
    @Column(name = "donation_ratio")
    private Integer donationRatio;

    @Transient
    private String businessCode;

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    /**
     * 获取模板id
     *
     * @return template_id - 模板id
     */
    public String getTemplateId() {
        return templateId;
    }

    /**
     * 设置模板id
     *
     * @param templateId 模板id
     */
    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    /**
     * 获取支付渠道名称
     *
     * @return channel_name - 支付渠道名称
     */
    public String getChannelName() {
        return channelName;
    }

    /**
     * 设置支付渠道名称
     *
     * @param channelName 支付渠道名称
     */
    public void setChannelName(String channelName) {
        this.channelName = channelName;
    }

    /**
     * 获取赠送比例数值
     *
     * @return donation_ratio - 赠送比例数值
     */
    public Integer getDonationRatio() {
        return donationRatio;
    }

    /**
     * 设置赠送比例数值
     *
     * @param donationRatio 赠送比例数值
     */
    public void setDonationRatio(Integer donationRatio) {
        this.donationRatio = donationRatio;
    }

    public Integer getChannelType() {
        return channelType;
    }

    public void setChannelType(Integer channelType) {
        this.channelType = channelType;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}